<!DOCTYPE HTML>
<html lang="en">

<head>
    <!--Setting-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="apple-mobile-web-app-capable" content="Sanphone&#39;Blog">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,adress=no">
    <meta name="browsermode" content="application">
    <meta name="screen-orientation" content="portrait">
    <meta name="theme-version" content="1.3.0">
    <meta name="root" content="/blog/">
    <link rel="dns-prefetch" href="https://wuxiangfeng.gitee.io/sanphone.gitee.io">
    <!--SEO-->

<meta name="keywords" content="ElasticSearch" />


<meta name="description" content="
查看所有索引
1GET _cat/indices
创建索引,并指定分词器
12345678put /user_index&#123;  &quot;settings&quot;: &#123;..." />


<meta name="robots" content="all" />
<meta name="google" content="all" />
<meta name="googlebot" content="all" />
<meta name="verify" content="all" />
    <!--Title-->

<title>
    
    ES-轻量查询---基于ES5.6版本 |
    
    Sanphone&#39;Blog
</title>

<link rel="alternate" href="/atom.xml" title="Sanphone&#39;Blog" type="application/atom+xml">


<link rel="icon" href="/favicon.ico">

    


<link rel="stylesheet" href="/blog/css/bootstrap.min.css?rev=3.3.7.css">
<link rel="stylesheet" href="/blog/css/font-awesome.min.css?rev=4.7.0.css">
<link rel="stylesheet" href="/blog/css/style.css?rev=@@hash.css">

    
<div class="hide">
    <script type="text/javascript">
    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cspan class='cnzz_stat_icon_1263868967 hide' %3E%3Cscript%20src%3D%22https%3A%2F%2Fs95.cnzz.com%2Fz_stat.php%3Fweb_id%3D1272564536%22%3E%3C%2Fscript%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/z_stat.php%3Fid%3D1263868967%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));
    </script>
</div>




    

<meta name="generator" content="Hexo 6.3.0"></head>
<!--[if lte IE 8]>
<style>
    html{ font-size: 1em }
</style>
<![endif]-->
<!--[if lte IE 9]>
<div style="ie">你使用的浏览器版本过低，为了你更好的阅读体验，请更新浏览器的版本或者使用其他现代浏览器，比如Chrome、Firefox、Safari等。</div>
<![endif]-->
<body>
    <header class="main-header"  style="background-image:url(
    https://hexo-theme-snippet-1251680922.cos.ap-beijing.myqcloud.com/img/banner.jpg)"
     >
    <div class="main-header-box">
        <a class="header-avatar" href="/" title='Sanphone'>
            <img src="/blog/img/avatar.jpg" alt="logo头像" class="img-responsive center-block">
        </a>
        <div class="branding">
            <!--<h2 class="text-hide">Snippet主题,从未如此简单有趣</h2>-->
            
            <img src="/blog/img/branding.png" alt="Snippet 博客主题" class="img-responsive center-block">
            
        </div>
    </div>
</header>
    <nav class="main-navigation">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="navbar-header"><span class="nav-toggle-button collapsed pull-right" data-toggle="collapse" data-target="#main-menu" id="mnav">
                        <span class="sr-only"></span>
                        <i class="fa fa-bars"></i>
                    </span>
                    <a class="navbar-brand" href="https://wuxiangfeng.gitee.io/sanphone.gitee.io">
                        Sanphone&#39;Blog</a>
                </div>
                <div class="collapse navbar-collapse" id="main-menu">
                    <ul class="menu">
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg"><i class="fa "></i>
                                主页</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/categories/前端/"><i class="fa "></i>
                                前端</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/categories/后端/"><i class="fa "></i>
                                后端</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/categories/移动端/"><i class="fa "></i>
                                移动端</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/categories/中间件/"><i class="fa "></i>
                                中间件</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/categories/工具/"><i class="fa "></i>
                                工具</a>
                        </li>
                        
                        <li role="presentation" class="text-center">
                            <a href="/bolg/archives/"><i class="fa "></i>
                                时间轴</a>
                        </li>
                        
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>
    <section class="content-wrap">
        <div class="container">
            <div class="row">
                <main class="col-md-8 main-content m-post">
                    <p id="process"></p>
<article class="post">
    <div class="post-head">
        <h1 id="ES-轻量查询---基于ES5.6版本">
            
            ES-轻量查询---基于ES5.6版本
            
        </h1>
        <div class="post-meta">
    
    <span class="categories-meta fa-wrap">
        <i class="fa fa-folder-open-o"></i>
        <a class="category-link" href="/blog/categories/%E4%B8%AD%E9%97%B4%E4%BB%B6/">中间件</a>
    </span>
    
    
    <span class="fa-wrap">
        <i class="fa fa-tags"></i>
        <span class="tags-meta">
            
            <a class="tag-none-link" href="/blog/tags/ElasticSearch/" rel="tag">ElasticSearch</a>
            
        </span>
    </span>
    
    
    
    <span class="fa-wrap">
        <i class="fa fa-clock-o"></i>
        <span class="date-meta">
            2024/02/01</span>
    </span>
    
    <span class="fa-wrap">
        <i class="fa fa-eye"></i>
        <span id="busuanzi_value_page_pv"></span>
    </span>
    
    
</div>
        
        
    </div>
    
    <div class="post-body post-content">
        <ol>
<li><p>查看所有索引</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">GET _cat/indices</span><br></pre></td></tr></table></figure></li>
<li><p>创建索引,并指定分词器</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">put /user_index</span><br><span class="line">&#123;</span><br><span class="line">  &quot;settings&quot;: &#123;</span><br><span class="line">    &quot;index&quot;: &#123;</span><br><span class="line">      &quot;analysis.analyzer.default.type&quot;: &quot;ik_max_word&quot;</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
</li>
<li><p>查询指定索引数据</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">GET /oil_tank_last_info/_search</span><br></pre></td></tr></table></figure></li>
<li><p>数据过滤,查询符合条件的数据</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">GET /oil_tank_last_info/_search</span><br><span class="line">&#123;</span><br><span class="line">  &quot;query&quot;:&#123;</span><br><span class="line">    &quot;match&quot;: &#123;</span><br><span class="line">      &quot;id&quot;: &quot;06581eed4a5b&quot; // 这里是查询id=06581eed4a5b的所有数据</span><br><span class="line">    &#125;</span><br><span class="line">  &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>空搜索: 搜索API的最基础的形式是没有指定任何查询的空搜索，它简单地返回集群中所有索引下的所有文档：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">GET /_search</span><br></pre></td></tr></table></figure>
</li>
<li><p>更新某个字段</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">POST /user_index/doc/_update_by_query</span><br><span class="line">&#123;</span><br><span class="line">    &quot;query&quot;: &#123;</span><br><span class="line">        &quot;match&quot;: &#123;</span><br><span class="line">            &quot;name&quot;: &quot;hello&quot;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    &quot;script&quot;: &#123;</span><br><span class="line">        &quot;source&quot;: &quot;ctx._source[&#x27;name&#x27;] = &#x27;world&#x27;&quot;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>查询字段等于某个值</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?q=name:world</span><br></pre></td></tr></table></figure>
</li>
<li><p>in查询,但是中文貌似查不出,<strong>待解决</strong></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?q=+name:(world car 电费)</span><br></pre></td></tr></table></figure>
</li>
<li><p>范围查询, TO 必须是大写</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?q=age:[1 TO 6]</span><br></pre></td></tr></table></figure></li>
<li><p>批量查询</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_mget # 中间的doc类型可将其设置为_all或保留为空,如果您没有设置类型，并且有许多文档共享同一类型_id，那么最终只会得到第一个匹配的文档。</span><br><span class="line">&#123;</span><br><span class="line">  &quot;ids&quot;:[&quot;1&quot;, &quot;2&quot;]</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure></li>
<li><p>批量查询,分开直接type</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">GET user_index/_mget # 查询俩个type中id都为1的文档</span><br><span class="line">&#123;</span><br><span class="line">  &quot;docs&quot;: </span><br><span class="line">  [</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_type&quot;:&quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: &quot;1&quot;</span><br><span class="line">    &#125;,</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_type&quot;:&quot;doc2&quot;,</span><br><span class="line">      &quot;_id&quot;: &quot;1&quot;</span><br><span class="line">    &#125;</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>
<p>同一个文档中的id不能用中括号括起来,如:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">GET user_index/_mget</span><br><span class="line">&#123;</span><br><span class="line">  &quot;docs&quot;: </span><br><span class="line">  [</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_type&quot;:&quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: [&quot;1&quot;, &quot;2&quot;] # 不能这样写</span><br><span class="line">    &#125;,</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_type&quot;:&quot;doc2&quot;,</span><br><span class="line">      &quot;_id&quot;: &quot;1&quot;</span><br><span class="line">    &#125;</span><br><span class="line">    ]</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
<li><p>查询年龄小于33的记录</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?q=age:&lt;33</span><br></pre></td></tr></table></figure></li>
<li><p>分页查询-不带条件</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?from=0&amp;size=1</span><br></pre></td></tr></table></figure></li>
<li><p>分页查询-带条件</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?q=age:[0 TO 10]&amp;from=0&amp;size=1</span><br></pre></td></tr></table></figure></li>
<li><p>对查询结果做过滤-只显示某些字段</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?_source=name,age</span><br></pre></td></tr></table></figure></li>
<li><p>排序</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">get user_index/doc/_search?sort=age:desc # 倒序</span><br><span class="line">get user_index/doc/_search?sort=age:asc # 正序(或者不加)</span><br></pre></td></tr></table></figure></li>
<li><p>批量查询,按_id来查</p>
<blockquote>
<p>貌似只能用_id, _source里面的字段不能</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">GET _mget</span><br><span class="line">&#123;</span><br><span class="line">  &quot;docs&quot;: [</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_index&quot;: &quot;user_index&quot;,</span><br><span class="line">      &quot;_type&quot;: &quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: 1,</span><br><span class="line">      &quot;_source&quot;: [&quot;name&quot;, &quot;age&quot;] # 并且指定要要查的字段</span><br><span class="line">    &#125;,</span><br><span class="line">        &#123;</span><br><span class="line">      &quot;_index&quot;: &quot;user_index&quot;,</span><br><span class="line">      &quot;_type&quot;: &quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: 2,</span><br><span class="line">      &quot;_source&quot;: [&quot;name&quot;]</span><br><span class="line">    &#125;</span><br><span class="line">    </span><br><span class="line">    ]</span><br><span class="line">  </span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>结果：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">&#123;</span><br><span class="line">  &quot;docs&quot;: [</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_index&quot;: &quot;user_index&quot;,</span><br><span class="line">      &quot;_type&quot;: &quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: &quot;1&quot;,</span><br><span class="line">      &quot;_version&quot;: 1,</span><br><span class="line">      &quot;found&quot;: true,</span><br><span class="line">      &quot;_source&quot;: &#123;</span><br><span class="line">        &quot;name&quot;: &quot;张张张张张三&quot;,   # 这里是显示name和age</span><br><span class="line">        &quot;age&quot;: 1</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    &#123;</span><br><span class="line">      &quot;_index&quot;: &quot;user_index&quot;,</span><br><span class="line">      &quot;_type&quot;: &quot;doc&quot;,</span><br><span class="line">      &quot;_id&quot;: &quot;2&quot;,</span><br><span class="line">      &quot;_version&quot;: 1,</span><br><span class="line">      &quot;found&quot;: true,</span><br><span class="line">      &quot;_source&quot;: &#123;</span><br><span class="line">        &quot;name&quot;: &quot;电费&quot;  # 这里只显示name</span><br><span class="line">      &#125;</span><br><span class="line">    &#125;</span><br><span class="line">  ]</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure></li>
<li><p>bulk(批量)操作—创建</p>
<blockquote>
<p>注意: 命令行不能分<strong>多行</strong>写,否则会报错,创建和数据都各自写一行,多个文档,就得写<br>多个create</p>
</blockquote>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">POST _bulk</span><br><span class="line">&#123;&quot;create&quot;: &#123;&quot;_index&quot;: &quot;article&quot;,&quot;_type&quot;: &quot;doc&quot;,&quot;_id&quot;:3&#125;&#125;</span><br><span class="line">&#123;&quot;id&quot;: 3,&quot;titile&quot;: &quot;java&quot;,&quot;content3&quot;: &quot;java test3&quot;,&quot;tage&quot;: [&quot;java&quot;, &quot;miaang&quot;], &quot;craete_time&quot;: 1554015482530&#125;</span><br><span class="line">&#123;&quot;create&quot;: &#123;&quot;_index&quot;: &quot;article&quot;,&quot;_type&quot;: &quot;doc&quot;,&quot;_id&quot;:2&#125;&#125;</span><br><span class="line">&#123;&quot;id&quot;: 2,&quot;titile&quot;: &quot;java2&quot;,&quot;content&quot;: &quot;java test2&quot;,&quot;tage&quot;: [&quot;java&quot;, &quot;miaang&quot;], &quot;craete_time&quot;: 1554015482530&#125;</span><br></pre></td></tr></table></figure></li>
</ol>
<ul>
<li>如果存在,会报错</li>
</ul>
<ol start="19">
<li>bulk(批量)操作—普通创建或者全量替换index<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">POST _bulk</span><br><span class="line">&#123;&quot;index&quot;: &#123;&quot;_index&quot;: &quot;article&quot;, &quot;_type&quot;: &quot;doc&quot;, &quot;_id&quot;: 4&#125;&#125;</span><br><span class="line">&#123;&quot;id&quot;: 5,&quot;titile&quot;: &quot;java2&quot;,&quot;content&quot;: &quot;java test2&quot;,&quot;tage&quot;: [&quot;java&quot;, &quot;miaang&quot;], &quot;craete_time&quot;: 1554015482530&#125;</span><br></pre></td></tr></table></figure></li>
</ol>
<ul>
<li>如果原文档存在,则更新,否则创建</li>
</ul>
<ol start="20">
<li>bulk(批量)操作—批量删除<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">POST _bulk</span><br><span class="line">&#123;&quot;delete&quot;: &#123;&quot;_index&quot;: &quot;article&quot;, &quot;_type&quot;: &quot;doc&quot;, &quot;_id&quot;: 4&#125;&#125;</span><br><span class="line">&#123;&quot;delete&quot;: &#123;&quot;_index&quot;: &quot;article&quot;, &quot;_type&quot;: &quot;doc&quot;, &quot;_id&quot;: 3&#125;&#125;</span><br></pre></td></tr></table></figure></li>
</ol>
<ul>
<li>如果中间有因为不存在而删除失败的命令,不会影响其他删除命令的执行</li>
</ul>

    </div>
    
    <div class="post-footer">
        <div>
            
            转载声明：
            商业转载请联系作者获得授权,非商业转载请注明出处 © <a href="" target="_blank">Snippet</a>
            
            
        </div>
        <div>
            
        </div>
    </div>
</article>
<div class="article-nav prev-next-wrap clearfix">
    
    <a href="/blog/2024/02/02/c++11%E4%B9%8B%E5%88%9D%E5%A7%8B%E5%8C%96%E5%88%97%E8%A1%A8/" class="pre-post btn btn-default" title='c++11之初始化列表'>
        <i class="fa fa-angle-left fa-fw"></i><span class="hidden-lg">上一篇</span>
        <span class="hidden-xs">
            c++11之初始化列表</span>
    </a>
    
    
    <a href="/blog/2024/02/01/hexo%E5%92%8Cgitee%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2/" class="next-post btn btn-default" title='hexo和gitee搭建博客'>
        <span class="hidden-lg">下一篇</span>
        <span class="hidden-xs">
            hexo和gitee搭建博客</span><i class="fa fa-angle-right fa-fw"></i>
    </a>
    
</div>

<div id="comments">
    
    
<div class="utteranc">
  
  <script
    src='https://utteranc.es/client.js'
    repo='shenliyang/snippet-comment'
    issue-term='pathname'
    issue-number=''
    theme='github-light'
    label=''
    crossorigin='anonymous'
    async
  ></script>
</div>



</div>

                </main>
                
                    <aside id="article-toc" role="navigation" class="col-md-4">
    <div class="widget">
        <h3 class="title">
            Table of Contents
        </h3>
        
        <p>暂无目录</p>
        
    </div>
</aside>
                
            </div>
        </div>
    </section>
    <footer class="main-footer">
    <div class="container">
        <div class="row">
        </div>
    </div>
</footer>
<a id="back-to-top" class="icon-btn hide">
    <i class="fa fa-chevron-up"></i>
</a>
    <div class="copyright">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="busuanzi">
    
    Total:
    <strong id="busuanzi_value_site_pv">
        <i class="fa fa-spinner fa-spin"></i>
    </strong>
    &nbsp; | &nbsp;
    Visitors:
    <strong id="busuanzi_value_site_uv">
        <i class="fa fa-spinner fa-spin"></i>
    </strong>
    
</div>
            </div>
            <div class="col-sm-12">
                <span>Copyright &copy;
                    2017
                    
                </span> |
                <span>
                    Powered by <a href="//hexo.io" class="copyright-links" target="_blank" rel="nofollow">Hexo</a>
                </span> |
                <span>
                    Theme by <a href="//github.com/shenliyang/hexo-theme-snippet.git" class="copyright-links" target="_blank" rel="nofollow">Snippet</a>
                </span>
            </div>
        </div>
    </div>
</div>



<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>


<script src="/blog/js/app.js?rev=@@hash.js"></script>

</body>
</html>